Imports System.IO

Public Class LogForm

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.DialogResult = Windows.Forms.DialogResult.OK
    End Sub

    Private Sub LogForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        LoadLog()
    End Sub

    Private Sub LoadLog()
        If File.Exists(Logging.LogFileName) Then
            Me.OutputField.Text = File.ReadAllText(Logging.LogFileName)
        Else
            Me.OutputField.Text = "Log file could not be located in folder: " & Application.ExecutablePath
        End If
    End Sub

End Class